#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_widget_clicked()
{

    QRect rect=this->geometry();
    qDebug()<<rect;
}

void Widget::on_frameWidget_clicked()
{
       QRect rect=this->frameGeometry();
       qDebug()<<rect;
}
